import request from '@/utils/request'
import apis from './'

export function getCatList () {
  return request({
    url: apis.ArticleCategory,
    method: 'get'
  })
}

export function getArticleList (parameter) {
  return request({
    url: apis.ArticleList,
    method: 'get',
    params: parameter
  })
}

export function getArticleDetail (id) {
  return request({
    url: `${apis.ArticleDetail}?id=${id}`,
    method: 'get'
  })
}
